CFLAG= -std=c++11 -I /home/ruice/workspace/muduo-master/build/release-install-cpp11/include/
LFLAG= -L /home/ruice/workspace/muduo-master/build/release-install-cpp11/lib -ljsoncpp -lmuduo_net -lmuduo_base -pthread

all : server publish_client subscribe_client 
server:server.cpp
	g++  $(CFLAG) $^ -o $@ $(LFLAG)
subscribe_client:subscribe_client.cpp
	g++  $(CFLAG) $^ -g -o $@ $(LFLAG)

publish_client:publish_client.cpp
	g++  $(CFLAG) $^ -g -o $@ $(LFLAG)

clean:
	rm -f subscribe_client server publish_client